package com.taru.order.service;



import com.taru.order.dao.GroupDaoImpl;
import com.taru.order.entity.Articl;
import com.taru.order.entity.Group;

import java.io.IOException;
import java.util.List;

public class GruopServiceImpl  {

    GroupDaoImpl groupDao=new GroupDaoImpl();



    public List<Group> getGroups()  {

        return groupDao.getGroups();
    }


    public int addGroup(Group group)  {

        return groupDao.addGroup(group);
    }


    public int modGroup(Group group)  {

        return groupDao.modGroup(group);
    }


    public int removeGroups(List<Integer> list) throws Exception {

        return groupDao.removeGroups(list);
    }


    public Group getGroupById(String groupId){

        return groupDao.getGroupById(groupId);
    }
}
